# -*- coding: utf-8 -*-
# !/usr/bin/python

import urllib
import urllib2
import json
# http://f10.eastmoney.com/NewFinanceAnalysis/xjllbAjax?companyType=4&reportDateType=1&reportType=1&endDate=&code=SH600031

values = {"companyType": 4, "reportDateType": 1, "reportType": 1, "endDate": "", "code": "SH600031"}
data = urllib.urlencode(values)
url = "http://f10.eastmoney.com/NewFinanceAnalysis/xjllbAjax"
request = urllib2.Request(url, data)
response = urllib2.urlopen(request)

result = response.read()
result.decode('utf-8')
jsonData = json.loads(result)

print('----OK---')

